/**
 * @author Modified by Abdul khader Azeem *
 */

package edu.nus.iss.t5.jass.entity;

import edu.nus.iss.t5.jass.entity.Company;
import edu.nus.iss.t5.jass.entity.Entity;

public class Company extends Entity {


	private String name;
	private String address;
	private String phoneNo;
	private String postalCode;
	private String faxNo;
	private String description;
	private String email;
	
	public Company(){
		this.name = null;
		this.address = null;
		this.phoneNo = null;
		this.postalCode = null;
		this.faxNo = null;
		this.description = null;
		this.email = null;
	}
	
	public Company(String id, String name, String address, String phoneNo, String postalCode, String faxNo, String description, String email){
		super(id);
		this.name = name;
		this.address = address;
		this.phoneNo = phoneNo;
		this.postalCode = postalCode;
		this.faxNo = faxNo;
		this.description = description;
		this.email = email;
	}
	
	public Company(Company company){
		super(company.getId());
		this.setKey(company.getKey());
		this.name = company.getName();
		this.address = company.getAddress();
		this.phoneNo = company.getPhoneNo();
		this.postalCode = company.getPostalCode();
		this.faxNo = company.getFaxNo();
		this.description = company.getDescription();
		this.email = company.getEmail();	
	}
	
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		if(name==null)
			return "";
		return name;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAddress() {
		if(address==null)
			return "";
		return address;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public String getPhoneNo() {
		if(phoneNo==null)
			return "";
		return phoneNo;
	}
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	public String getPostalCode() {
		if(postalCode==null)
			return "";
		return postalCode;
	}
	public void setFaxNo(String faxNo) {
		this.faxNo = faxNo;
	}
	public String getFaxNo() {
		if(faxNo==null)
			return "";
		return faxNo;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getDescription() {
		if(description==null)
			return "";
		return description;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		if(email==null)
			return "";
		return email;
	}
}
